package br.com.parametros;

import java.util.Arrays;
import java.util.Properties;

public class SysProp {
	public static void main(String[] args) {
		
		Properties props = System.getProperties(); // (1)
		props.setProperty("appName", "BigKahuna"); // (2)
		System.out.println(System.getProperty("appName"));
		for (String prop : args) {
			String value = props.getProperty(prop); // (3)
			System.out.printf("%s=%s%n", prop, value);
		}
		
		System.out.println(Arrays.deepToString(args));
	}
}